<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>页面</title>
    <script src="vue.js"></script>
</head>
<body>
<div id="app">
    <table border="1">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>专业</th>
        </tr>
        <tr v-for="u in list">
            <td>{{u.id}}</td>
            <td>{{u.name}}</td>
            <td>{{u.age}}</td>
            <td>{{u.subject}}</td>
            <td>
                <button @click="">删除</button>
            </td>
        </tr>
    </table>
    <input type="text">
</div>
<script>
    let v = new Vue({
        el: '#app',
        data: {
            list: [
                {id: 1, name: "张三", age: 20, subject: "语文"},
                {id: 2, name: "李四", age: 21, subject: "数学"},
                {id: 3, name: "王五", age: 22, subject: "英语"}
            ],
            user: {
                id: '',
                name: '',
                age: '',
                subject: ''
            }
        },
        methods: {

        }
    })
</script>
</body>
</html>